package com.zb.javabean;

import lombok.Data;

/**
 * @Author: 张波
 * @Time: 2025/8/18 18:54
 */
@Data
public class Student {
	private int StuId;
	private String stuName;
	private String stuGander;
	private String stuClass;
	private Teacher teacher;
	public Student() {
		System.out.println("无参构造方法被调用");
	}

	public Student(int stuId, String stuName, String stuGander, String stuClass) {
		StuId = stuId;
		this.stuName = stuName;
		this.stuGander = stuGander;
		this.stuClass = stuClass;
	}

	public void  init(){
		System.out.println("活了");
	}
	public void destroy(){
		System.out.println("死了");
	}
}
